/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.exception;

import java.io.Serializable;

/**
 * 公共异常父类
 * 
 * @author aeky
 */
public class AekyException extends Exception implements Serializable {

    private static final long serialVersionUID = -6371749201662000180L;

    /** The message key. */
    private String messageKey = null;

    private String[] args;

    public AekyException() {
        super();
    }

    public AekyException(String message) {
        super(message);
        this.messageKey = message;
    }

    public AekyException(String messageKey, String[] args) {
        super(messageKey);
        this.messageKey = messageKey;
        this.args = args;
    }

    public String getMessageKey() {
        return messageKey;
    }

    public String[] getArgs() {
        return args;
    }

}
